<?php
session_start();
date_default_timezone_set("America/Sao_Paulo");
setlocale(LC_ALL, 'pt_BR');
include "../../biblioteca/funcao.php";
?>
<html>
    
    <head>
        
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link rel="stylesheet" type="text/css" href="../../plugin/estilo.css">
        <link rel="stylesheet" type="text/css" href="../../plugin/bootstrap/css/bootstrap-responsive.css">
        <link rel="stylesheet" type="text/css" href="../../plugin/bootstrap/css/bootstrap.css"> 
        <script type="text/javascript" src="../../plugin/jquery-1.7.2.js"></script>
        <script type="text/javascript" src="../../plugin/bootstrap/js/bootstrap.min.js"></script>
        <script type="text/javascript" src="../../plugin/funcao.js" /></script>

        <title><?= $t_impri ?></title>
        <link href="../../base/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
            <!--[if lt IE 9]>
            <script src="plugin/html5.js"></script>
        <![endif]-->
        
    </head>
    
    <body onLoad="window.print();">
        
        <div id="div">
        
            <?php
            $sql = "SELECT * FROM relprev WHERE status='1' ORDER BY rel_id";
            $res = sql($sql);
            $linha = mysql_fetch_array($res);
            echo "<h4>{$t_relprev_titulo_detalhes} :: Nº {$linha['rel_id']}</h4><a href='#' onclick='window.print();' style='font-size:13px;'>{$t_impri}</a>
            <h5>{$t_relprev_titulo_gerais}</h5>
            {$t_local}:&nbsp;&nbsp;
            {$linha['rel_local']}<br>
            {$t_data} / {$t_hora}:&nbsp;&nbsp;
            ".todatabr($linha['rel_data'])."&nbsp;&nbsp;&nbsp;&nbsp;{$linha['rel_hora']} Z<br>
            <h5>{$t_relprev_titulo_envolvidos}</h5>
            ".nl2br($linha['rel_membro'])."<br>
            <h5>{$t_situacao}</h5>
            ".nl2br($linha['rel_msg'])."<br>
            <h5>{$t_relprev_titulo_relator}:</h5>
            {$linha['rel_relator']}<br>{$linha['rel_contato']}";
            ?>
                
        </div>
        
    </body>
    
</html>